#include "data_filler.h"
#include "rng.h"

namespace uzu
{
    void FillRandom(Matrix<float>& matrix)
    {
        RNG rng;
        uint32_t num_elements = matrix.cols * matrix.rows;
        for (uint32_t i = 0; i < num_elements; ++i)
        {
            uint32_t y = i / matrix.cols;
            uint32_t x = i - y * matrix.cols;
            matrix(y, x) = rng.Random();
        }
    }

    void FillRandom(float* data, int size)
    {
        RNG rng;
        for (int i = 0; i < size; ++i)
        {
            data[i] = rng.Random();
        }
    }
}
